<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="basePath" value="${pageContext.request.contextPath}" scope="application" />
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<title>Title</title>
<link rel="stylesheet" href="${basePath}/static/news/css/style.css">
<script type="text/javascript">
	// 类型字段
	var type = '${type}';
	alert(type);
	//新闻内容
	var detail = '${detail}';
	alert(detail);
</script>
</head>
<body>
	<div class="container">
		<div class="info box">
			<img src="img/ddd.jpg" class="header" alt="">
			<div class="box flex1">
				<div class="view_left flex1">
					<div class="username box">
						<h3>Lucy</h3>
						<ul class="honor_icons">
							<c:forEach items="${obj.honor }" var="item">
								<li>${item }</li>
							</c:forEach>
						</ul>
					</div>
					<ul class="msg">
						<li>${obj.module }</li>
						<li>${obj.college }</li>
						<li class="last">6分钟前</li>
					</ul>
				</div>
				<div class="view_right box">
					<label for="">￥</label>
					<p>50</p>
					<label for="">+</label>
				</div>
			</div>
		</div>
		<div class="content">
			<h2 class="title">${obj.title }</h2>
			<p class="content_detail">${obj.word }</p>
			<p class="mark">非诚勿扰</p>
			<span>1000000</span> <img src="img/eee.jpg" alt="">
		</div>
	</div>
	<div class="comment">
		<div class="title box">
			<div class="line"></div>
			<h2>留言</h2>
		</div>
		<div class="content">
			<c:forEach items="${recs }" var="rec">
				<c:if test="${rec.type == '1' }">
					<div class="info box">
						<img src="img/ddd.jpg" class="header" alt="">
						<div class="box flex1">
							<div class="view_left flex1">
								<div class="username box">
									<h3>Lucy</h3>
									<ul class="honor_icons">
										<li></li>
										<li></li>
										<li></li>
										<li></li>
										<li></li>
									</ul>
								</div>
								<p class="msg">${rec.word }</p>
							</div>
							<div class="view_right box">
								<p>23分钟前</p>
							</div>
						</div>
					</div>
				</c:if>
			</c:forEach>
		</div>
	</div>
	<footer class="box">
		<a class="space flex1 box"> <img src="" alt="">
			<h3>留言</h3>
		</a> <a class="btn"> 管理 </a>
	</footer>
</body>
</html>